package com.atguigu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.SkuImagesEntity;

import java.util.List;
import java.util.Map;

/**
 * sku图片
 *
 * @author huyulu
 * @email 1085068942@qq.com
 * @date 2021-11-26 22:16:12
 */
public interface SkuImagesService extends IService<SkuImagesEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 批量保存sku图片信息
     * @author 胡菜鸡
     * @date 2021/12/27 9:25
     */
    boolean saveSkuImageInfo(List<SkuImagesEntity> skuImagesEntities);

    /**
     * 根据 skuId 查询 sku 的所有图片信息
     * @author 胡菜鸡
     * @date 2022/1/13 9:41
     */
    List<SkuImagesEntity> getImagesBySkuId(Long skuId);
}

